
#ifndef _MEMBER_BMenuBar_H_
#define _MEMBER_BMenuBar_H_

#include <BRect>
#include <BMenu>

namespace BWE
{
	class MenuItem
	{
	public:
		MenuItem()
		{
			menu = 0;
		}
		MenuItem(BMenu* menu)
		{
			this->menu = menu;
		}

		bool operator == (const BMenu* menu)
		{
			return this->menu == menu;
		}

		BMenu*		menu;
		BRect		rect;
		BSize		titleSize;
		BString		t_title;
	};

	class member_BMenuBar
	{
	public:
		member_BMenuBar(BMenuBar* menuBar);
		~member_BMenuBar();

		void adjustMenuRects();

		BMenuBar*			boss;
		int					spacing;
		Align				align;
		int					hoverIndex;
		bool				pressed;
		BArray<MenuItem>	items;
		BSize				contentSize;
		bool				dirty;
	};
}

#endif